package com.fhz.high5kotlin.viewmodel

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider

/**
 * 时间:2023/3/23
 * @author Mr.Feng
 * 简述: 来用创建viewModel
 */
class MyViewModelFactroy(var a:Int) : ViewModelProvider.Factory {

    override fun <T : ViewModel?> create(modelClass: Class<T>): T {
        return MyViewModel(a) as T
    }



}
